import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

export const queryPageDataReq = async (params) =>
  await Https.post("/staff/performance/detail/performanceList", params);

export const addItemReq = async (params) =>
  await Https.post("/staff/performance/detail/addPerformance", params);
export const updateItemReq = async (params) =>
  await Https.post("/staff/performance/detail/updatePerformance", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/tables", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/tables", params);

export const toggleStateReq = async (params) =>
  await Https.post("/tables", params, true);

export const queryTypeTableReq = async (params) =>
  await Https.post("/tables/type", params);

export const updateNewStaffItemReq = async (params) =>
  await Https.post(
    "/staff/performance/detail/updateNewStaffInfo",
    params,
    true
  );

export const queryAllStaffDataReq = async (params) =>
  await Https2.post("/system/user/list", params, true);
